import { createStore, applyMiddleware} from 'redux';
//引入redux-thunk，用于支持异步action
import thunk from 'redux-thunk';
import { composeWithDevTools } from 'redux-devtools-extension';
import allReducers from './reducers/index';
export default createStore(allReducers, composeWithDevTools(applyMiddleware(thunk)))